<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .mycolor{
            color:#fff;
            background-color: #F8DD88;
        }
        .steam{
            color: red;
        }
    </style>
</head>
<body>
<ul id="ul">
    <li id="ali"><em>在家吃</em>油条</li>
    <li id="bli">包子</li
    ><li id="cli"><a id="yufen">米饺</a></li
><li id="dli">鱼粉</li>
</ul>
<script>
    // 查找子节点
    var tempel = document.getElementById("ali");
    var value=tempel.textContent;
    alert("获取到的值是："+value);
    tempel.textContent="三鲜粉";
</script>
</body>
</html>